﻿-- =============================================
-- Author:		Andreas Könighofer (IT-eXperience)
-- Create date: 14.01.2009
-- Description:	Inserts new machinetype into MachineType table
-- =============================================
CREATE PROCEDURE [dbo].[CreateMachineType] 
	-- Add the parameters for the stored procedure here
	@MachineTypeName NVARCHAR(100)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	INSERT INTO [BigDays2009].[dbo].[MachineType]
    (
		[MachineTypeName]
	)
    VALUES
    (
		@MachineTypeName
	)
	RETURN SCOPE_IDENTITY()
END

---- end script CreateMachineType stored procedure ----

---- start script CreateRentalService stored procedure ----

